.class public Lde/greenrobot/dao/query/Join;
.super Ljava/lang/Object;


# instance fields
.field final daoDestination:Lde/greenrobot/dao/AbstractDao;

.field final joinPropertyDestination:Lde/greenrobot/dao/Property;

.field final joinPropertySource:Lde/greenrobot/dao/Property;

.field final sourceTablePrefix:Ljava/lang/String;

.field final tablePrefix:Ljava/lang/String;

.field final whereCollector:Lde/greenrobot/dao/query/WhereCollector;


# direct methods
.method public constructor <init>(Ljava/lang/String;Lde/greenrobot/dao/Property;Lde/greenrobot/dao/AbstractDao;Lde/greenrobot/dao/Property;Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lde/greenrobot/dao/query/Join;->sourceTablePrefix:Ljava/lang/String;

    iput-object p2, p0, Lde/greenrobot/dao/query/Join;->joinPropertySource:Lde/greenrobot/dao/Property;

    iput-object p3, p0, Lde/greenrobot/dao/query/Join;->daoDestination:Lde/greenrobot/dao/AbstractDao;

    iput-object p4, p0, Lde/greenrobot/dao/query/Join;->joinPropertyDestination:Lde/greenrobot/dao/Property;

    iput-object p5, p0, Lde/greenrobot/dao/query/Join;->tablePrefix:Ljava/lang/String;

    new-instance v0, Lde/greenrobot/dao/query/WhereCollector;

    invoke-direct {v0, p3, p5}, Lde/greenrobot/dao/query/WhereCollector;-><init>(Lde/greenrobot/dao/AbstractDao;Ljava/lang/String;)V

    iput-object v0, p0, Lde/greenrobot/dao/query/Join;->whereCollector:Lde/greenrobot/dao/query/WhereCollector;

    return-void
.end method


# virtual methods
.method public varargs and(Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/WhereCondition;
    .locals 2

    iget-object v0, p0, Lde/greenrobot/dao/query/Join;->whereCollector:Lde/greenrobot/dao/query/WhereCollector;

    const-string/jumbo v1, " AND "

    invoke-virtual {v0, v1, p1, p2, p3}, Lde/greenrobot/dao/query/WhereCollector;->combineWhereConditions(Ljava/lang/String;Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v0

    return-object v0
.end method

.method public getTablePrefix()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lde/greenrobot/dao/query/Join;->tablePrefix:Ljava/lang/String;

    return-object v0
.end method

.method public varargs or(Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/WhereCondition;
    .locals 2

    iget-object v0, p0, Lde/greenrobot/dao/query/Join;->whereCollector:Lde/greenrobot/dao/query/WhereCollector;

    const-string/jumbo v1, " OR "

    invoke-virtual {v0, v1, p1, p2, p3}, Lde/greenrobot/dao/query/WhereCollector;->combineWhereConditions(Ljava/lang/String;Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v0

    return-object v0
.end method

.method public varargs where(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/Join;
    .locals 1

    iget-object v0, p0, Lde/greenrobot/dao/query/Join;->whereCollector:Lde/greenrobot/dao/query/WhereCollector;

    invoke-virtual {v0, p1, p2}, Lde/greenrobot/dao/query/WhereCollector;->add(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)V

    return-object p0
.end method

.method public varargs whereOr(Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/Join;
    .locals 3

    iget-object v0, p0, Lde/greenrobot/dao/query/Join;->whereCollector:Lde/greenrobot/dao/query/WhereCollector;

    invoke-virtual {p0, p1, p2, p3}, Lde/greenrobot/dao/query/Join;->or(Lde/greenrobot/dao/query/WhereCondition;Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)Lde/greenrobot/dao/query/WhereCondition;

    move-result-object v1

    const/4 v2, 0x0

    new-array v2, v2, [Lde/greenrobot/dao/query/WhereCondition;

    invoke-virtual {v0, v1, v2}, Lde/greenrobot/dao/query/WhereCollector;->add(Lde/greenrobot/dao/query/WhereCondition;[Lde/greenrobot/dao/query/WhereCondition;)V

    return-object p0
.end method
